﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace atm
{
    public partial class Form1 : Form
    {
       string cardNum;
        string PIN;
        Model model = new Model();
        public Form1()
        {
            InitializeComponent();
            
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
                    }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void button3_Click(object sender, EventArgs e)
        {
            
        }

        private void Form1_Load(object sender, EventArgs e)
        {
           
            model.login(cardNum,PIN);
            textBox1.Text = cardNum.ToString();
            textBox2.Text = PIN.ToString();
            
        }

        private void button1_Click(object sender, EventArgs e)
        {
            model.takeCash(10);
        }
    }
}
